package net.cyan.commons.validate.validator;

import net.cyan.commons.util.DataConvert;

/**
 * larrgerequal
 * @author camel
 * @date 2008-7-22
 */
public class LargerEqualValidator extends CompareValidator
{
    public static final String MESSAGE = "cyan.validation.largerEqual";

    public LargerEqualValidator()
    {
    }

    protected boolean compare(Object value, Object compareValue)
    {
        return DataConvert.compare(value, compareValue) >= 0;
    }

    protected String getMessageName()
    {
        return MESSAGE;
    }
}